import request from '@/utils/request'

export function getallpermission() {
    return request({
        url: '/sys/permission',
        method: 'GET',
    })
}
export function addpermission(data) {
    return request({
        url: '/sys/permission',
        method: 'POST',
        data
    })
}
export function removepermission(id) {
    return request({
        url: `/sys/permission/${id}`,
        method: 'DELETE',
    })
}
export function getxqpermission(id) {
    return request({
        url: `/sys/permission/${id}`,
        method: 'GET',
    })
}
export function exitpermission(data) {
    return request({
        url: `/sys/permission/${data.id}`,
        method: 'PUT',
        data
    })
}